package com.hs.srm.admin.modules.purchasechange.controller;

import com.hs.srm.admin.modules.purchasechange.service.impl.PurchaseChangeRecordServiceImpl;
import com.hs.srm.common.utils.PageUtils;
import com.hs.srm.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author ych
 * @since 2020-04-20 15:40:27
 */
@RestController
@RequestMapping("/purchaseChangeRecord")
public class PurchaseChangeRecordController {

    @Autowired
    private PurchaseChangeRecordServiceImpl purchaseChangeRecordService;

    /**
     * 采购变更记录列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params) {
        PageUtils page = purchaseChangeRecordService.queryPage(params);
        return R.ok(page);
    }

}